package de.op.projectc.helper;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.OrthographicCamera;

/**
 * Created by Andy on 22.04.14.
 */
public class CameraHelper {
    private static OrthographicCamera instance = null;

    private static final float VIEWPORT_WIDTH = Gdx.graphics.getWidth() / 25;
    private static final float VIEWPORT_HEIGHT = Gdx.graphics.getHeight() / 25;

    protected CameraHelper() {
    }

    public static OrthographicCamera getInstance() {
        if(instance == null) {
            instance = new OrthographicCamera(VIEWPORT_WIDTH, VIEWPORT_HEIGHT);
        }
        return instance;
    }
}
